package com.example.sunlight.wzoneunicom;

import java.util.Random;

/**
 * Created by SunLight on 2017/7/20.
 */

public class Origin {

    public static String[] dbm = {"0", "-2", "-5", "-1", "-3", "-7", "-2", "-1", "-1", "-2", "-4", "-5", "-9", "-2", "-3", "-1", "-1"};
    public int[][] ZigbeeStellate = ZigbeeStellate();
    public int[][] ZigbeeTree = ZigbeeTree();
    public int[][] ZigbeeSingle = ZigbeeSingle();
    public int[][] ZigbeeNet = ZigbeeNet();

    public int[][] ZigbeeStellate() {
        int[][] ZigbeeStellate = {{0, 0}, {0, 250}, {0, -250}, {250, 0}, {-250, 0}, {-175, -175}, {175, 175}, {175, -175}, {-175, 175}, {-175, 40}, {-160, 70}, {-200, -100}, {-200, -44}, {-200, 136}, {160, 142}, {150, 80}, {200, 50}};
        int[][] ZigbeeStellate2 = {{0, 0}, {200, 350}, {150, 100}, {250, 550}, {300, 228}, {150, -102}, {266, -150}, {208, -400}, {300, -367}, {-166, -30}, {-150, -268}, {-256, -277}, {-254, -100}, {-254, 250}, {-244, 300}, {-57, 372}, {-300, 256}};
        int[][] ZigbeeStellate3 = {{0, 0}, {225, 356}, {345, 54}, {324, 222}, {145, 177}, {100, -312}, {216, -200}, {158, -254}, {64, -400}, {-254, -88}, {-225, -333}, {-324, -300}, {-142, -44}, {-241, 200}, {-211, 335}, {-340, 321}, {-366, 300}};
        int num = new Random().nextInt(3);
        switch (num) {
            case 0:
                return ZigbeeStellate;
            case 1:
                return ZigbeeStellate;
            case 2:
                return ZigbeeStellate;
        }
        return ZigbeeStellate;
    }

    public int[][] ZigbeeTree() {
        int[][] ZigbeeTree = {{0, -300}, {80, -50}, {160, -50}, {240, -50}, {320, -50}, {-80, -50}, {-160, -50}, {-240, -50}, {-320, -50}, {-360, 210}, {-280, 210}, {-120, 210}, {-200, 210}, {360, 210}, {280, 210}, {120, 210}, {200, 210}};
        int num = new Random().nextInt(3);
        switch (num) {
            case 0:
                return ZigbeeTree;
            case 1:
                return ZigbeeTree;
            case 2:
                return ZigbeeTree;
        }
        return ZigbeeTree;
    }

    public int[][] ZigbeeSingle() {
        int[][] ZigbeeSingle = {{-500, 0}, {-400, 0}, {-300, 0}, {-200, 0}, {-100, 0}, {0, 0}, {100, 0}, {200, 0}, {300, 0}, {400, 0}, {500, 0},
                {-400, -100}, {-200, 100}, {200, 100}, {300, 200}, {400, 100}, {500, -100}};
        return ZigbeeSingle;
    }

    public int[][] ZigbeeNet() {
        int[][] ZigbeeNet = {{0, 0}, {170, 0}, {145, -145}, {0, -170}, {-145, -145}, {-170, 0}, {-145, 145}, {0, 170}, {145, 145}, {220, 0}, {220, -220}, {0, -220}, {-220, -220}, {-220, 0}, {-220, 220}, {0, 220}, {220, 220}};
        int num = new Random().nextInt(3);
        switch (num) {
            case 0:
                return ZigbeeNet;
            case 1:
                return ZigbeeNet;
            case 2:
                return ZigbeeNet;
        }
        return ZigbeeNet;
    }

}
